package mortal.game.manager
{
	import com.gengine.global.*;
	import com.gengine.utils.pools.*;
	import flash.display.*;
	import mortal.game.view.msgbroad.*;
	
	public class MsgIssmNoticeItemPanel extends Sprite
	{
		
		public function MsgIssmNoticeItemPanel()
		{
			mouseEnabled = false;
			mouseChildren = false;
		}
		
		public function addItem(item:IssmNoticItem) : void
		{
			this.addChild(item);
			item.x = (Global.stage.stageWidth - item.width) / 2;
			item.y = 135;
		}
		
		private function onNoticeHide(item:IssmNoticItem) : void
		{
			removeChild(item);
			item.dispose();
			ObjectPool.disposeObject(item, IssmNoticItem);
		}
		
		public function removeAllItem() : void
		{
			while (this.numChildren > 0)
			{
				
				this.removeChildAt(0);
			}
		}
	}
}
